// 导入按钮组件和按钮组组件
import { install } from '../helpers';
import Button from './Button.vue';
import ButtonGroup from './ButtonGroup.vue';

// 组件列表
const TuiButtonComponents = {
  'tui-button': Button,
  'tui-button-group': ButtonGroup
};

// 安装函数
const buttonInstall = (app: any) => {
  install(app, TuiButtonComponents);
};

// 导出组件和安装函数
export { Button, buttonInstall, TuiButtonComponents };

export default {
  buttonInstall,
  ...TuiButtonComponents
};

// 导出类型
export type { TuiButtonProps, TuiButtonGroupProps } from './types';